#ifndef __BSP_H__
#define __BSP_H__

/* 定义 BSP 版本号 */
#define __STM32F4_BSP_VERSION		"1.1"

/* 开关全局中断的宏 */
#define ENABLE_INT()	__set_PRIMASK(0)	/* 使能全局中断 */
#define DISABLE_INT()	__set_PRIMASK(1)	/* 禁止全局中断 */

/* 这个宏仅用于调试阶段排错 */
#define BSP_Printf		printf
//#define BSP_Printf(...)

#ifndef TRUE
	#define TRUE  1
#endif

#ifndef FALSE
	#define FALSE 0
#endif

#include <string.h>
#include "stm32f4xx.h"

/* 通过取消注释或者添加注释的方式控制是否包含底层驱动模块 */
#include "Inc/bsp_aht21.h"
#include "Inc/bsp_at24cxx.h"
#include "Inc/bsp_em7028.h"
#include "Inc/bsp_ext_wdg.h"
#include "Inc/bsp_lcd_st7789.h"
#include "Inc/bsp_lsm303.h"
#include "Inc/bsp_mpu6050.h"
#include "Inc/bsp_pwr.h"
#include "Inc/bsp_spl06_001.h"
#include "Inc/bsp_touch_cst816.h"
#include "Inc/bsp_key.h"
#include "Inc/bsp_rtc.h"


void bsp_init(void);
void HAL_Delay_us(uint32_t us);
void HAL_Delay_ms(uint32_t ms);


#endif /* __BSP_H__ */
